
<!DOCTYPE html>
<html>
<head>
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>

<link rel="stylesheet" type="text/css" href="theme/layui/css/layui.css">
<link rel="stylesheet" type="text/css" href="theme/default/css/common.css">
<script src="theme/default/Js/Common.js"></script>
<script src="theme/default/Js/jquery-3.0.0.min.js"></script>
<script src="theme/default/js/artDialog.js?skin=blue"></script>
<link rel="stylesheet" type="text/css" href="include/webupload/webuploader.css">
<script src="include/webupload/webuploader.min.js"></script> 
<script src="include/webupload/uploads.js"></script>
<link rel='stylesheet' type="text/css" href='theme/desktop/css/font-awesome.min.css'>

</head>
<body>

<script>
<!-- 必填项提示
function CheckInput()
{
	if (1=="1"){if(document.all.rType.value == ""){art.dialog({title: 'Error',time: 1,icon: 'warning',content: '跟单类型不能为空!'});document.all.rType.focus();return false;}}
	if (1=="1"){if(document.all.rState.value == ""){art.dialog({title: 'Error',time: 1,icon: 'warning',content: '跟单进度不能为空!'});document.all.rState.focus();return false;}}
	if (1=="1"){if(document.all.rLinkman.value == ""){art.dialog({title: 'Error',time: 1,icon: 'warning',content: '跟单对象不能为空!'});document.all.rLinkman.focus();return false;}}
	if (0=="1"){if(document.all.rNextTime.value == ""){art.dialog({title: 'Error',time: 1,icon: 'warning',content: '下次联系不能为空!'});document.all.rNextTime.focus();return false;}}
	if (0=="1"){if(document.all.rRemind.value == ""){art.dialog({title: 'Error',time: 1,icon: 'warning',content: '提醒时间不能为空!'});document.all.rRemind.focus();return false;}}
	if (0=="1"){if(document.all.rContent.value == ""){art.dialog({title: 'Error',time: 1,icon: 'warning',content: '详细内容不能为空!'});document.all.rContent.focus();return false;}}
	
	

	
	
}
-->
</script>

<!----------------------------------------修改跟单管理开始----------------------------------------> 
<!----------------------------------------修改跟单管理开始---------------------------------------->
<div class="cssout">
  <form class="layui-form" name="save" action="?action=Gendan&stype=saveEdit&LaiLu=" method="post" onSubmit="return CheckInput();">
    <div class="cssin">
      <ul>
        <li class="w100 bg">
          <dd class="isin"><B>修改跟单管理</B></dd>
        </li>
        <li class="w25 bg cl tr">
          <dd class="isin">
            
            <font color="#FF0000">*</font>
            跟单类型</dd>
        </li>
        <li class="w75">
          <dd class="isin">
            <select name="rType" id="Select_Gendan" style='border:1px solid #f00;'><option value="">请选择</option><option value="电话跟进" selected>电话跟进</option><option value="上门拜访">上门拜访</option><option value="QQ交谈">QQ交谈</option><option value="Email邮件">Email邮件</option></select>
            </dd>
        </li>
        <li class="w25 bg cl tr">
          <dd class="isin">
            
            <font color="#FF0000">*</font>
            跟单进度</dd>
        </li>
        <li class="w75">
          <dd class="isin">
            <select name="rState" id="select_Type" style='border:1px solid #f00;'><option value="">请选择</option><option value="渠道部转交">渠道部转交</option><option value="企划部跟进">企划部跟进</option><option value="市场部跟进">市场部跟进</option></select>
            &nbsp; <span class="info_help help01" >同步客户类型</span>
            
            </dd>
        </li>
        <li class="w25 bg cl tr">
          <dd class="isin">
            
            <font color="#FF0000">*</font>
            跟单对象</dd>
        </li>
        <li class="w75">
          <dd class="isin">
            <select name="rLinkman" id="rLinkman" onChange="Getselectids();" style='border:1px solid #f00;'><option value="">请选择</option><option value="李经理" tel="18978978991" selected>李经理</option></select>
            &nbsp;
           
			
<span id="linktel"> 电话：<b style="color:red;"></b></span>
<script>
function Getselectids(){
	var telmr=$("#rLinkman").find("option:selected").attr("tel")
	if(telmr!=""){
		$("#linktel b").text(telmr)
	}else{
		$("#linktel b").text(" 未查询到信息")
	}
}
$(document).ready(function(){ 
  Getselectids()
})
</script> 
            
            
            </dd>
        </li>
        <li class="w25 bg cl tr">
          <dd class="isin">
            下次联系</dd>
        </li>
        <li class="w75">
          <dd class="isin">
            <input name="rNextTime" type="text" id="rNextTime" class="int Wdate" size="22" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:00:00'})" value="2017-12-28 10:00:00" />
            提前:
            <select name="rRemind" class="bor int">
              <option value="1">1小时</option>
              <option value="2">2小时</option>
              <option value="3">3小时</option>
              <option value="24">1 天</option>
              <option value="48">2 天</option>
              <option value="72">3 天</option>
              <option value="168">1 周</option>
            </select>
            提醒 <span class="b red">重新提醒:
            <input name="RepeatRemind" type="checkbox" value="1" />
            </span></dd>
        </li>
        
        
        
        
        
        
<div class="zidonggaodu fujian">
        <li class="w25 cl bg tr">
          <dd class="isin">
            附件</dd>
        </li>
        <li class="w75">
          <dd class="isin">
<div class="cssoutfujian">
  <ul class="listpic2">

  </ul>
</div>
          
<span id="fujian1"> </span>
<script>
//定义一个上传
var upName1 = $("#fujian1").powerWebUpload(
{ 
	auto: true,//上传后是否自动上传
	fileNumLimit:10,//允许上传个数
	accept: {
	   title: '上传附件',
	   extensions: 'gif,jpg,png,bmp,doc,docx,xls,xlsx,ppt,pdf,rar,zip,txt',//允许类型 原始：'gif,jpg,jpeg,bmp,png'
	   mimeTypes: '*'//类型 原始：'image/*'
	}//限制的配置信息
});
//绑定上传完成事件 file 参数中有 原始名称 大小 后缀 类型等等参数；percentage是服务返回的参数 有信息 和图片地址
    upName1.on('uploadSuccess', function (file, percentage) {
	$("#fujianlist").val(percentage.data.src);
	
});
</script>
          </dd>
        </li>
        <div class="clear"></div>
</div>
        
        
        
        <li class="w25 bg cl duohang tr">
          <dd class="isin">
            详细内容</dd>
        </li>
        <li class="w75 duohang">
          <dd class="isin">
            <textarea name="rContent" rows="4" id="rContent" class="bor textarea" style="height:65px;width:98%;">
</textarea>
          </dd>
        </li>
          
        
        
        <div class="clear"></div>
      </ul>
    </div>
    <div class="h50b"></div>
    <div class="fixed_bg_B"> 
      <script>
							<!--
							for(var i=0;i<document.all.rRemind.options.length;i++){
								if(document.all.rRemind.options[i].value == "1"){
								document.all.rRemind.options[i].selected = true;}}
							-->
							</script>
      <input name="rID" type="hidden" value="2">
      <input name="cType" type="hidden" id="cType" value="跟进中">
      <input type="submit" name="Submit" class="btn2 btnbaoc" value="保存">
      <input name="Back" type="button" id="Back" class="btn2 btnguanb" value="关闭" onClick="art.dialog.close();guanbi();">
      
   
      
    </div>
  </form>
</div>

<script src="theme/default/WdatePicker.js"></script> 
<script src="theme/layui/layui.js"></script> 
<script src="theme/desktop/js/common.js"></script>

<script>
/*弹出窗口封装代码*/
$(".open-app").on("click",function(){
	var width = $(this).data("width")?$(this).data("width"):900,//获得宽度
	height = $(this).data("height")?$(this).data("height"):400//获得高度
	url = $(this).attr("href")//获得打开URL
	title = $(this).attr("title");//获得标题	
	$.dialog.open(url, {title: title, width:width,height:height, fixed: true});
	return false;	
})
</script>

</body>
</html>
